package com.ujiuye.service;

import com.ujiuye.entity.Course;
import com.ujiuye.entity.Coursedetail;
import com.ujiuye.util.PageBean;

import java.util.List;
import java.util.Map;

/**
 * CompanyName: IT优就业<br/>
 * Datetime: 2021/7/2 10:33<br/>
 *
 * @author TanJian
 */
public interface CourseService {
    int addCourse(Course course);



    int delAll(String cids);

    int updateCourse(Course course);

    int addCourseDetail(Coursedetail cd);



    List<Course> findCourseByType(int courseType);

    PageBean getPageBean(String currentPage, String pageSize, String courseName);

    PageBean<Course> findAllSelect(String currentPage, String pageSize, String courseName, String courseType);


    Course findCourse(int cid);


    Map<String, List<Coursedetail>> findCourseDetail(int cid);

    List<Course> findCourseByUid(int uid);

}
